From 62bce9b30dea7bda728d2b772cb43cc97a86756f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 27 Nov 2006 23:20:29 +0000 Subject: [PATCH] * Don't mess up diff link when revision is not deleted --- includes/SpecialContributions.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index f9fe14ef29..34de8e0aa2 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -400,10 +400,13 @@ function ucListEdit( $sk, $row ) { } } - if( $rev->userCan( Revision::DELETED_TEXT ) ) { - $difftext = '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; - } else { - $difftext = '(' . $messages['diff'] . ')'; + + if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { + if ( $rev->userCan( Revision::DELETED_TEXT ) ) { + $difftext .= '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; + } else { + $difftext .= '(' . $messages['diff'] . ')'; + } } $histlink='('.$sk->makeKnownLinkObj( $page, $messages['hist'], 'action=history' ) . ')'; -- 2.20.1